using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace viBook.Models
{
    public class viBookContext : DbContext
    {
        // You can add custom code to this file. Changes will not be overwritten.
        // 
        // If you want Entity Framework to drop and regenerate your database
        // automatically whenever you change your model schema, add the following
        // code to the Application_Start method in your Global.asax file.
        // Note: this will destroy and re-create your database with every model change.
        // 
        // System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<viBook.Models.viBookContext>());

        public DbSet<viBook.Models.Chapter> Chapters { get; set; }

        public DbSet<viBook.Models.ChapterComment> Comments { get; set; }

        public DbSet<viBook.Models.Page> Pages { get; set; }

        public DbSet<viBook.Models.Book> Books { get; set; }

        public DbSet<viBook.Models.ContentTag> ContentTags { get; set; }

        public DbSet<viBook.Models.ChapterLike> ChapterLikes { get; set; }

        public DbSet<viBook.Models.Tag> Tags { get; set; }



        public DbSet<Author> Authors { get; set; }

        public DbSet<Category> Categories { get; set; }

        public DbSet<viBook.Models.User> Users { get; set; }
        public DbSet<viBook.Models.ReportComment> ReportComments { get; set; }
        public DbSet<viBook.Models.ReportChapter> ReportChapters { get; set; }

        
    }
}
